package dmo2;

public class Frog extends Animal implements Swimming {
    public Frog(String name, String colour, String kind) {
        super(name, colour, kind);
    }

    @Override
    public void eat() {
        System.out.println("青蛙是"+getKind()+"爱吃昆虫");
    }

    @Override
    public void cry() {
        System.out.println("那只"+getColour()+"的，名字叫"+getName()+"青蛙正在呱呱的叫");
    }

    @Override
    public void swimming() {
        System.out.println("虽然不是鱼，但青蛙也是泳坛高手");
    }
}
